package com.meiyou.mapper;

import com.meiyou.annotation.AutoFill;
import com.meiyou.entity.Collect;
import com.meiyou.enumeration.OperationType;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @BelongsProject: meiyou
 * @BelongsPackage: com.meiyou.mapper
 * @Author: 尹晓安
 * @Date: 2023/11/25 18:10
 * @Description: todo
 */
@Mapper
public interface ImageMapper {

    /**
     * 批量删除图片
     *
     * @param articleId 文章id
     * @return
     */
    void removeBatch(Long articleId);

    /**
     * 批量添加图片
     *
     * @param imageList 图片列表
     * @param articleId 文章id
     */
    void insertBatch(Long articleId, List<String> imageList);

    /**
     * 查询文章图片
     * @param id 文章id
     * @return
     */
    List<String> select(Long id);
}
